﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace DiscoveryLogic.DataViz.NetworkDiagram
{
    /// <summary>
    /// 
    /// </summary>
    public class DiGraph:Graph
    {
        /// <summary>
        /// 
        /// </summary>
        /// <param name="vertices"></param>
        /// <param name="arcs"></param>
        public DiGraph(Dictionary<Guid, Vertice> vertices, Dictionary<Guid, Arc> arcs) 
        {
            this.Vertices = vertices;
            this.Edges=new Dictionary<Guid, Edge>();
            if(arcs !=null && arcs.Count>0)
            {
                foreach(Arc arc in arcs.Values)
                    this.Edges.Add(arc.ID, arc);
            }
        }
    }
}
